#include <stdio.h>
#include <string.h>

int main() {
	int m = 0, n = 0, i = 0;
	char a[40], b[40], t[40];
	gets (t);
	while (t[i] != '\0') {
		if (t[i] < 58 && t[i] > 47) {
			a[m] = t[i];
			m++, i++;
		} else {
			b[n] = t[i];
			n++, i++;
		}
	}
	a[m] = '\0';
	b[n] = '\0';
	strcat(b, a);
	puts(b);
}
